<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    let m=prompt("请输入数字：")
if(m%2==0){
    alert("偶数")
}else if(m%2==1){
    alert("奇数")
}else{
    alert("不是数字")
}
</script>
</html>